package st.business.tepth.business.visitor.visitorwork.work;

import java.util.List;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;
import st.shadow.library.ui.recycler.MultipleItemEntity;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-06-05 16:31
 */

public interface WorkContract {
    interface View extends BaseView {
        void showClassification(List<MultipleItemEntity> list);
    }

    interface Model extends BaseModel {
        Disposable getClassificationList(int repairId,
                                         OnDataConvertListener<List<MultipleItemEntity>> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getClassificationList(int repairId);
    }
}
